<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.zhangyj.com/input" prefix="boast"%>
<%
String contextpath = request.getContextPath();
%>
<boast:js file="/workspace/sys/js/role.js" />
<span dojoType="dojo.data.ItemFileWriteStore" jsid="roleStore" id="roleStore" url="<%=contextpath %>/data/load/roleinfo.do"></span>
<table dojoType="dojox.grid.DataGrid"
		jsid="roleGrid" id="roleGrid" 
		store="roleStore" selectionMode="single" rowsPerPage="20" rowSelector="20px" style="width:100%;height:100%">
	<thead>
		<th field="rolename" width="300px">角色名称</th>
		<th field="remark"  width="auto">备注</th>
	</thead>
</table>

<div dojoType="dijit.Dialog" id="u_dialog" closeNode="hider" title="角色信息">  
        <form id="myForm" data-dojo-type="dijit.form.Form" data-dojo-props='encType:"multipart/form-data", action:"<%=contextpath%>/role/save.do", method:"post"' onsubmit="return false;"> 
           <input id="roleid" data-dojo-type="dijit.form.TextBox" data-dojo-props='name:"roleid", type:"hidden", value:""'/>     
           <input id="oper" data-dojo-type="dijit.form.TextBox" data-dojo-props='name:"oper", type:"hidden", value:""'/>     
            <table>  
                <tr>  
                    <td><label for="rolename">角色名称：</label></td>  
                    <td><input id="rolename" data-dojo-type="dijit.form.ValidationTextBox" data-dojo-props='id: "rolename", name:"rolename", required:true, value:""'/></td>  
                  
                </tr>  
                 <tr>  
                    <td><label for="remark">备注：</label></td>  
                    <td >
                   <textarea id="remark" data-dojo-type="dijit.form.SimpleTextarea" data-dojo-props='name:"remark", rows:"5", cols:"20"'></textarea> </td>  
                  
                </tr> 
                <tr>  
                    <td></td>  
                    <td><button id="u_btn_save" data-dojo-type="dijit.form.Button" data-dojo-props='type:"button"'>保存</button></td>  
                </tr>  
            </table>  
        </form>  
 </div>  

